package com.key.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;

/**
 * @author wei
 */
@ApiModel("维修单")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RepairForm {

  @ApiModelProperty(name = "rfId",notes = "维修id",required = true)
  private Long rfId;

  @ApiModelProperty(name = "rfNo",notes = "维修单号",required = true)
  private String rfNo;

  @ApiModelProperty(name = "rfState",notes = "办理状态(1:未处理，2:已处理)",required = true)
  private Integer rfState;

  @ApiModelProperty(name = "rfImage",notes = "照片",required = true)
  private String rfImage;

  @ApiModelProperty(name = "rfBusinessTime",notes = "业务日期",required = true)
  @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd",timezone="GMT+8")
  private Timestamp rfBusinessTime;

  @ApiModelProperty(name = "rfProcessor",notes = "处理人",required = true)
  private String rfProcessor;

  @ApiModelProperty(name = "rfReportRepair",notes = "报修人",required = true)
  private String rfReportRepair;

  @ApiModelProperty(name = "rfRepairSpend",notes = "维修花费",required = true)
  private BigDecimal rfRepairSpend;

  @ApiModelProperty(name = "rfRemark",notes = "备注",required = true)
  private String rfRemark;

  @ApiModelProperty(name = "rfRepairDetails",notes = "维修内容",required = true)
  private String rfRepairDetails;

  @ApiModelProperty(name = "assetsIdList",notes = "资产id list",required = true)
  private List<Long> assetsIdList;

}
